package com.ant.storage.vo;

import com.ant.storage.pojo.AuditList;
import com.ant.storage.pojo.Commodity;
import com.ant.storage.pojo.PurchaseOrders;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author hzd
 * @version 1.0
 * @date 2022/4/14 15:40
 */
@Data
public class SubscribeVo {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("city_id")
    private Integer cityId;

    @ApiModelProperty(value = "申请部门")
    @TableField("department_id")
    private String departmentId;

    @ApiModelProperty(value = "采购清单编号")
    @TableField("subscribe_number")
    private String subscribeNumber;

    @ApiModelProperty(value = "采购类型")
    @TableField("purchase_type")
    private String purchaseType;

    @ApiModelProperty(value = "数量")
    private String total;

    @ApiModelProperty(value = "金额")
    private BigDecimal price;

    @ApiModelProperty(value = "支付方式")
    @TableField("pay_type")
    private String payType;

    @ApiModelProperty(value = "消费总金额")
    @TableField("total_price")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "申请采购人")
    private String proposer;

    @ApiModelProperty(value = "采购人id")
    @TableField("proposer_id")
    private Integer proposerId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "审核状态 1 审核中 2 审核通过 3 审核驳回")
    @TableField("process_state")
    private Integer processState;

    @ApiModelProperty(value = "生成状态")
    private Integer status;

    @TableField("creator_by")
    private String creatorBy;

    private Date creationTime;

    @ApiModelProperty(value = "签字信息")
    @TableField(exist = false)
    private List<AuditList> auditList;

    @ApiModelProperty(value = "物品列表")
    @TableField(exist = false)
    private List<Commodity> commodityList;


    @ApiModelProperty(value = "签字信息")
    @TableField(exist = false)
    private List<PurchaseOrders> purchaseOrdersList;


    @ApiModelProperty(value = "部门信息")
    @TableField(exist = false)
    private  String departmentName;
}
